﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using System.ComponentModel;

namespace MRSite.Entity
{
    /// <summary>
    /// 用户地址表
    /// </summary>
    [Table(Name = "user_address")]
    public class user_address : Entity
    {
        public user_address()
        { }
        #region Model

        /// <summary>
        /// 编号
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }



        /// <summary>
        /// 用户id
        /// </summary>
        [Column(Name = "userid")]
        public int userid { get; set; }

        /// <summary>
        /// 微信用户openid
        /// </summary>
        [Column(Name = "openid")]
        public string openid { get; set; }

        /// <summary>
        /// 省份
        /// </summary>
        [Column(Name = "province")]
        public string province { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        [Column(Name = "city")]
        public string city { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        [Column(Name = "area")]
        public string area { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [Column(Name = "addrDetail")]
        public string addrDetail { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Column(Name = "tel")]
        public string tel { get; set; }

        /// <summary>
        /// 街道
        /// </summary>
        [Column(Name = "jiedao")]
        public string jiedao { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [Column(Name = "contractPerson")]
        public string contractPerson { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(Name = "createDate", IsDbGenerated = true)]
        public DateTime createDate { get; set; }

        /// <summary>
        /// 是否默认地址 
        /// </summary>
        [Column(Name = "isDefault"), DefaultValue(0)]
        public int isDefault { get; set; }

        #endregion Model
    }
}
